package net.wofly.sale.order.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 订单支付信息
 * @author lign
 * @version 1.0
 * @created 
 */
@Data
@Entity
@Table(name = "sale_order_payinfo")
@ApiModel(description = "订单支付信息")
public class PayInfo {

	@Id
	@ApiModelProperty(value = "主键ID", required = true)
	private String payInfoID;
	
	/**
     * 存放订单ID
     */
	@ApiModelProperty(value = "订单ID", required = true)
	private String orderID;
	
	/**
     * 支付类型
     */
	@ApiModelProperty(value = "支付类型", required = true)
	private Integer payType;
	
	@ApiModelProperty(value = "支付类型名称", required = true)
	@Transient
	private String payTypeName ;
	
	/**
     * 支付帐户
     */
	@ApiModelProperty(value = "支付帐户", required = true)
	private String payAccount;
	/**
     * 支付金额
     */
	@ApiModelProperty(value = "支付金额", required = true)
	private Double amount;
	/**
     * 支付时间
     */
	@ApiModelProperty(value = "支付时间", required = true)
	private Long payTime;

	public PayInfo(){

	}
	@Override
	public void finalize() throws Throwable {

	}
}//end PayInfo